﻿ALTER TABLE [dbo].[Accounts]
    ADD CONSTRAINT [FK_Accounts_BankAccounts] FOREIGN KEY ([BankId], [BankAccountId]) REFERENCES [dbo].[BankAccounts] ([BankId], [Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;

